package com.source.lightfowl.person.service;

import com.source.lightfowl.person.entity.Person;
import com.source.lightfowl.utils.MyResult;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

public interface PersonService {

    /**
     *  用户账户的设置
     *
     * @return*/
    MyResult register(String username, String password, String email, HttpServletRequest request, String clientCode);
    MyResult register(Person person, HttpServletRequest request, String clientCode, MultipartFile file);
    MyResult login(String username, String password, HttpServletRequest request);
    MyResult logout(HttpServletRequest request);
    MyResult sendMail(String email, HttpServletRequest request);
    MyResult checkUsername(String username);
    MyResult checkEmail(String email);
    MyResult updatePassword(String password, String email, HttpServletRequest request, String clientCode);
}
